package com.haruhinav.mapper;

import com.haruhinav.entity.EmailDetails;
import com.haruhinav.entity.YiBanRemindPunch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface YiBanRemindPunchMapper {
    //    获取自动发送邮箱详情
    EmailDetails getEmailDetails();
    //    复合查询
    List<YiBanRemindPunch> queryYiBanRemindPunch(YiBanRemindPunch yiBanRemindPunch);

//    修改发送邮箱详情
    int updateEmailDetails(EmailDetails emailDetails);

//  添加提醒用户
    int addYiBanUser(YiBanRemindPunch yiBanRemindPunch);

//  修改提醒用户
    int updateYiBanUser(YiBanRemindPunch yiBanRemindPunch);
//    删除提醒用户
    int removeYiBanUser(@Param("id") Integer id);
//    根据id查询用户
    YiBanRemindPunch findUserById(@Param("id") int id);

}
